Getting started with MovingPandas

Binder HTML

MovingPandas provides a trajectory datatype based on GeoPandas. The project home is at https://github.com/anitagraser/movingpandas

The documentation is available at https://movingpandas.readthedocs.io/en/master/

Creating a trajectory from scratch

Trajectory objects consist of a trajectory ID and a GeoPandas GeoDataFrame with a DatetimeIndex. The data frame therefore represents the trajectory data as a Pandas time series with associated point locations (and optional further attributes).

Let's create a small toy trajectory to see how this works:

We can also access the trajectory's GeoDataFrame:

Loading trajectories from CSV

Loading trajectories from a GeoPackage

After reading the trajectory point data from file, we want to construct the trajectories.

Accessing individual trajectories

To visualize trajectories in their geographical context, we can also create interactive plots with basemaps: